/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package chapter5;

/**
 *
 * @author Denise Carolina
 */
public class SelfTest9 extends Infinity {

    static Integer i;
    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        int sw = (int)(Math.random() * 3);
        
        switch(sw){
            case 0: {
                    System.out.println("case 0");
                    for (int x = 10; x>5;x++){
                        if(x>10000000) x = 10;
                    }
                    break;
            }
            case 1: {
                    System.out.println("case 1");
                    int y = 7*i; break;
            }
            case 2: 
                    System.out.println("case 2");
                    Infinity inf = new SelfTest9();
                    SelfTest9 self = (SelfTest9)inf;
        }
    }

}

class Infinity{}
